String htmlPage = String("")+
+"\n<!DOCTYPE html>"
+"\n<html>"
+"\n<head>"
+"\n<meta charset=\"utf-8\">"
+"\n<title>MOZHU AMS 控制器</title>"
+"\n<script>"
+"\nfunction load_AMS_status()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n  {"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"AMS_status\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"AMS_status\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\n	"
+"\nfunction load_AMS_workstate()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"AMS_workstate\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"AMS_workstate\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction load_buffer_state()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"Buffer_workstate\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"buffer_state\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction load_buffer_direction()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"Buffer_direction\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"buffer_direction\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\n	"
+"\nfunction load_filament_now()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"Filament_now\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_now\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\n	"
+"\nfunction load_filament_next()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"Filament_next\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_next\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_mode_auto()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"mode_auto\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_mode_manual()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"mode_manual\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_1_input()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_1_input\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_stop()"
+"\n{"
+"\n    var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"/filament_stop\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_1_output()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_1_output\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_2_input()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_2_input\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_2_output()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_2_output\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_3_input()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_3_input\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_3_output()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_3_output\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_4_input()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_4_input\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_4_output()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_4_output\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_buffer_enable()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"buffer_enable\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_buffer_disable()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"buffer_disable\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_buffer_input()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"buffer_input\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_buffer_output()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"buffer_output\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_1_enable()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_1_enable\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_2_enable()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_2_enable\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_3_enable()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_3_enable\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nfunction set_filament_4_enable()"
+"\n{"
+"\n	var xmlhttp;"
+"\n	if (window.XMLHttpRequest)"
+"\n	{"
+"\n		xmlhttp=new XMLHttpRequest();"
+"\n	}"
+"\n	else"
+"\n	{"
+"\n		xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");"
+"\n	}"
+"\n	xmlhttp.onreadystatechange=function()"
+"\n	{"
+"\n		if (xmlhttp.readyState==4 && xmlhttp.status==200)"
+"\n		{"
+"\n			document.getElementById(\"operation_resault\").innerHTML=xmlhttp.responseText;"
+"\n		}"
+"\n	}"
+"\n	xmlhttp.open(\"GET\",\"filament_4_enable\",true);"
+"\n	xmlhttp.send();"
+"\n}"
+"\nwindow.onload = function() "
+"\n{"
+"\n    function refreshText()"
+"\n    {"
+"\n        load_AMS_status();"
+"\n        load_AMS_workstate();"
+"\n        load_buffer_state();"
+"\n        load_buffer_direction();"
+"\n        load_filament_now();"
+"\n        load_filament_next();"
+"\n    }"
+"\n    setInterval(refreshText, 1000);"
+"\n}"
+"\n</script>"
+"\n</head>"
+"\n<body>"
+"\n<div><h2>MOZHU AMS</h2></div>"
+"\n<h3>系统状态</h3>"
+"\n<p>AMS工作模式：<span id=\"AMS_status\" style=\"display: inline-block;\">NULL</span></p>"
+"\n<p>AMS工作状态：<span id=\"AMS_workstate\" style=\"display: inline-block;\">NULL</span></p>"
+"\n<p>进料缓冲器状态：<span id=\"Buffer_workstate\" style=\"display: inline-block;\">NULL</span></p>"
+"\n<p>进料缓冲器方向：<span id=\"Buffer_direction\" style=\"display: inline-block;\">NULL</span></p>"
+"\n<p>当前耗材：<span id=\"Filament_now\" style=\"display: inline-block;\">NULL</span></p>"
+"\n<p>下一个耗材：<span id=\"Filament_next\" style=\"display: inline-block;\">NULL</span></p>"
+"\n<h3>AMS控制</h3>"
+"\n<p>模式切换</p>"
+"\n<p>操作结果：<span id=\"operation_resault\" style=\"display: inline-block;\">NULL</span></p>"
+"\n<p>请注意进退料控制和缓冲器设置仅在手动模式下生效</p>"
+"\n<button type=\"button\" onclick=\"set_mode_manual()\">手动模式</button>"
+"\n<button type=\"button\" onclick=\"set_mode_auto()\">自动模式</button><br>"
+"\n<p>进退料控制</p>"
+"\n<button type=\"button\" onclick=\"set_filament_stop()\">停止所有耗材输送</button><br>"
+"\n<button type=\"button\" onclick=\"set_filament_1_input()\">通道1进料</button>"
+"\n<button type=\"button\" onclick=\"set_filament_1_output()\">通道1退料</button><br>"
+"\n<button type=\"button\" onclick=\"set_filament_2_input()\">通道2进料</button>"
+"\n<button type=\"button\" onclick=\"set_filament_2_output()\">通道2退料</button><br>"
+"\n<button type=\"button\" onclick=\"set_filament_3_input()\">通道3进料</button>"
+"\n<button type=\"button\" onclick=\"set_filament_3_output()\">通道3退料</button><br>"
+"\n<button type=\"button\" onclick=\"set_filament_4_input()\">通道4进料</button>"
+"\n<button type=\"button\" onclick=\"set_filament_4_output()\">通道4退料</button><br>"
+"\n<p>进料缓冲器控制</p>	"
+"\n<button type=\"button\" onclick=\"set_buffer_enable()\">启动缓冲器</button>"
+"\n<button type=\"button\" onclick=\"set_buffer_disable()\">禁用缓冲器</button><br>	"
+"\n<button type=\"button\" onclick=\"set_buffer_input()\">进料缓冲模式</button>"
+"\n<button type=\"button\" onclick=\"set_buffer_output()\">退料缓冲模式</button><br>"
+"\n<h3>通道设置</h3>"
+"\n<p>当前正在生效的通道(不会进行换料)</p>"
+"\n<button type=\"button\" onclick=\"set_filament_1_enable()\">通道1</button>"
+"\n<button type=\"button\" onclick=\"set_filament_2_enable()\">通道2</button><br>	"
+"\n<button type=\"button\" onclick=\"set_filament_3_enable()\">通道3</button>"
+"\n<button type=\"button\" onclick=\"set_filament_4_enable()\">通道4</button><br>"
+"\n</body>"
+"\n</html>";

void regesiter_callback();
void load_AMS_status();
void load_AMS_workstate();
void load_buffer_state();
void load_buffer_direction();
void load_filament_now();
void load_filament_next();
void set_mode_auto();
void set_mode_manual();
void set_filament_1_input();
void set_filament_1_output();
void set_filament_2_input();
void set_filament_2_output();
void set_filament_3_input();
void set_filament_3_output();
void set_filament_4_input();
void set_filament_4_output();
void set_filament_stop();
void set_buffer_enable();
void set_buffer_disable();
void set_buffer_input();
void set_buffer_output();
void set_filament_1_enable();
void set_filament_2_enable();
void set_filament_3_enable();
void set_filament_4_enable();
void handleNotFound();